package com.lx.patterns.visitor;

/**
 * @ClassName Other
 * @Description: 其他人
 * @Author: 落雪
 * @CreateDate: 2025/2/15 14:14
 * @UpdateUser: 落雪
 * @UpdateDate: 2025/2/15 14:14
 * @UpdateRemark:
 * @Version: 1.0
 */
public class Other implements Person {

    @Override
    public void feed(Cat cat) {
        System.out.println("其他人喂猫");
    }

    @Override
    public void feed(Dog dog) {
        System.out.println("其他人喂狗");
    }
}
